package com.example.kotlinlearndemo.kotlin


fun main() {
    var a: String? = null

    if (a?.length == null) {

    } else {
        println("null")
    }
}

object LetTest {

    fun test1(v: String?) {
        v.let {
            val a = "1";
            println(a + it)
        }

        v?.let {
            val a = "2"
            println(a + it)
        }
    }

}